<!DOCTYPE html>
<!-- saved from url=(0045)http://1618.com/Home/Center/flowWithdraw.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人中心</title>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<include file="./Public/public/public.html" />
    <script>
        $(document).ready(function(){
            $("input[type='hidden'][contenteditable]").contenteditable();
            $(".select2").select2({
                width: '100%',
                minimumResultsForSearch: Infinity
            });
            $("select[name='withdraw[category]']").on("change",function(){
                if($(this).val()){
                    var option = $(this).find("option[value="+$(this).val()+"]");
                    var userName = $(option).attr('username');
                    var cardId = $(option).attr('cardid');
                    $("[name='withdraw[user_name]']").val(userName);
                    $("[name='withdraw[card_id]']").val(cardId);
                }else{
                    $("[name='withdraw[user_name]']").val("");
                    $("[name='withdraw[card_id]']").val("");
                }
            });
        
        $("a[action=cancelWithdraw]").click(function() {
                var id = $(this).attr('data-id');
                showConfirm({
                    msg:"确认要取消这笔提现吗？",
                    confirmed:function(){
                        $.ajax({
                            url: "{:U('Depositlog/cancelDeposit')}",
                            type: "POST",
                            data: {id: id},
                            success: function (resp) {
                                if (resp.status != 1) {
                                    showModal({msg: resp.msg});
                                } else {
                                    showModal({
                                        msg: resp.msg, callbackTime: 1000, end: function () {
                                            window.location.reload(true)
                                        }
                                    });
                                }
                            }
                        })
                    }
                })
            })

        })
        
        function toWithdraw(){
            $("[popup=withdraw]").reveal();
        }
        function withdraw(){
//            $('[popup=withdraw] .withdraw-wrap').showLoading();
            Qsubmit($('#withdrawForm'),function(msg){
                showModal({msg:msg});
                $('[popup=withdraw] .withdraw-wrap').hideLoading();
                $('[popup=withdraw]').closeModal();
                location.reload();
            });
        }
    </script>
</head>
<body>

<!--pc头部-->
<include file="./Public/public/top.html" />
<!--pc头部结束-->
<div class="layout-wrap">
    <!--已审核-->
    <div class="layout">
     <include file="./Public/public/centerLeft.html" />
		<!--  提现申请 -->
        <div class="right" ms-controller="right" style="min-height: 882px;">
            <h3>提现申请  <span class="fr">可提现金额:<span class="red06">{$userAssets.present_money}</span>元    冻结金额:<span class="red06">{$userAssets.locked_money}</span>元</span></h3>
            <div class="cnt-tips">
              <p>温馨提示：遵守国家反洗钱和套现行为的相关法律规定：充值后的所有资金交易后才能提现。</p>

            </div>
            <div class="split-dot mt10 mb10"></div>
      		<div class="pt10 pb10">
      			<a class="button-s button-blue" href="{:U('Depositlog/applyDeposit')}">申请提现</a></div>
            <div class="table-wrappper">
                <div class="table table-w300">
                    <div class="th">
                         <div class="td w5"><span class="ml10">ID</span></div>
                         <div class="td w10"><span class="ml10">提现金额</span></div>
                        <div class="td w5"><span class="ml10">手续费</span></div>
                        <div class="td w10"><span class="ml10">实际到账</span></div>
                         <div class="td w5"><span class="ml10">提现方式</span></div>
                        <div class="td w15"><span class="ml10">账号</span></div>
                         <div class="td w5"><span class="ml10">状态</span></div>
                         <div class="td w10"><span class="ml10">用户备注</span></div>
                         <div class="td w10"><span class="ml10">管理员备注</span></div>
                         <div class="td w10"><span class="ml10">申请时间</span></div>
                         <div class="td w10"><span class="ml10"></span></div>
                         <div class="clr"></div>
                    </div>
                   <if condition="$count neq 0">
						<volist name="list" id="vo">
							<div class="tr domain">
			                     <div class="td w5"><span class="ml10">{$vo.id}</span></div>
			                     <div class="td w10"><span class="ml10">￥{$vo.dep_money}</span></div>
			                     <div class="td w5"><span class="ml10">￥{$vo.dep_fee}</span></div>
                			     <div class="td w10"><span class="ml10">￥{$vo.actual_money}</span></div>
                			     <div class="td w5">
			                     	<span class="ml10">
			      						  <if condition="$vo.dep_type eq 1">
			                 				银行卡 
					                 	  <elseif condition="$vo.dep_type eq 2"/>
					                 	  	信用卡
					                 	  	<elseif condition="$vo.dep_type eq 2"/>
					                 	  	支付宝
					                 	  	<elseif condition="$vo.dep_type eq 2"/>
					                 	  	微信
								   		  </if>           
			                     	</span>
		                     	</div>
                			     <div class="td w15"><span class="ml10">{$vo.dep_cardno}</span></div>
                			     <div class="td w5">
			                     	<span class="ml10">
			      						  <if condition="$vo.status eq 1 ">
			                 				处理中 
					                 	    <elseif condition="$vo.status eq 2 "/>
					                 	  	成功
					                 	  	<elseif condition="$vo.status eq 3 "/>
					                 	  	已撤单
					                 	  	<elseif condition="$vo.status eq 4 "/>
					                 	  	失败
								   		  </if>           
			                     	</span>
		                     	</div>
                			     <div class="td w10"><span class="ml10">{$vo.userremark}</span></div>
		                     	<div class="td w10"><span class="ml10">{$vo.adminremark}</span></div>
		                     	<div class="td w10"><span class="ml10">{$vo.createdate}</span></div>
		                     	<div class="td w10">
                     				<!-- <if condition="$vo.status eq 1 ">
		                 				<a class="button-s button-blue" action="cancelWithdraw" data-id="{$vo.id}">
	                         				撤单
	                         			</a>
						   		   </if> -->
		                     	</div>
			                     <div class="clr"></div>
			                </div>
						</volist>
				<else/>
					<div class="empty" style="height:400px;"></div> 
				</if>                    
    
                </div>

      </div>

            <div class="paginate-wrap">
                <div class="dataTables_paginate">
                                        <div class="clr"></div>
                </div>
            </div>


        </div>

        <div class="clr"></div>
    </div>
</div>
<include file="./Public/public/footer.html" />

</body></html>